package com.eonmind.common.provider.entity.pay;

import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.annotation.index.MongoIndex;
import com.mongoplus.enums.IdTypeEnum;
import com.mongoplus.enums.TypeEnum;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;
import org.springframework.boot.autoconfigure.graphql.ConditionalOnGraphQlSchema;

/**
 * @ClassName Order
 * @Description 订单实体类
 * Author 32004
 * Date 2025/5/5 13:48
 * Version 1.0
 **/


@Data
@CollectionName("order")
@FieldNameConstants
@ToString
public class Order {

    // 订单ID
    @ID(type = IdTypeEnum.AUTO)
    private Long id;

    // 用户ID
    @MongoIndex
    private Long userId;


    //支付平台交易号
    private String transactionId;

    // 订单状态
    private Integer status;

    // 订单金额
    private Integer amount;

    // 订单类型
    private Integer type;

    // 创建时间
    private Long createTime;

    // 更新时间
    private Long updateTime;

    // 支付时间
    private Long payTime;

    // 是否删除
    private Integer del;

    //支付二维码链接
    private String codeUrl;

    //描述
    private String description;


}
